home *** CD-ROM | disk | FTP | other *** search
-
- defineps PSWDrawControlPoints (float X,Y;float numstring Pts[TotPts];int TotPts;char *Chs)
- X Y moveto (Chs) Pts xyshow
- endps
-
- defineps PSWDefineFont(char *fontname)
- 10 dict dup begin
- /sa { % x y sa x' y'
- transform
- 0.25 sub round 0.25 add exch
- 0.25 sub round 0.25 add exch
- itransform
- } bind def
-
- /rsa { %dx dy rsa dx' dy'
- dtransform
- round exch
- round exch
- idtransform
- } bind def
-
- /FontName /fontname def
- /FontType 3 def
- /FontMatrix [.001 0 0 .001 0 0] def
- /FontBBox [-500 -500 500 500] def
-
- /Encoding 256 array def
- 0 1 255 {Encoding exch /.notdef put} for
-
- Encoding (a) 0 get /Rectfill put
- Encoding (b) 0 get /Rectopen put
- Encoding (c) 0 get /Arcopen put
- Encoding (d) 0 get /Rombus put
- Encoding (e) 0 get /Partrect put
-
- /CharProcs 6 dict def
- CharProcs begin
- /.notdef { } def
- /Rectfill
- {
- -300 -300 sa moveto 0 600 rsa rlineto
- 600 0 rsa rlineto 0 -600 rsa rlineto closepath
- fill
- } def
- /Rectopen
- {
- -300 -300 sa moveto 0 600 rsa rlineto
- 600 0 rsa rlineto 0 -600 rsa rlineto closepath
- stroke
- } def
- /Arcopen
- {
- 0 0 450 0 360 arc
- -50 0 rmoveto
- 0 0 400 360 0 arcn
- fill
- } def
- /Rombus
- {
- 450 0 sa moveto 0 450 sa lineto
- -450 0 sa lineto 0 -450 sa lineto
- 450 0 sa lineto
- fill
- } def
- /Partrect
- {
- -300 -300 sa moveto 0 500 rsa rlineto
- 500 0 rsa rlineto 0 -500 rsa rlineto closepath
- fill
- } def
- end
-
- /BuildChar
- {
- 500 0 -500 -500 500 500 setcachedevice
- exch begin
- Encoding exch get
- CharProcs exch get
- exec
- end
- } def
- end
-
- /fontname exch definefont pop
- endps
-